package com.sj.purchase.modules.cost.repository;

import com.sj.purchase.modules.cost.domain.Profit;
import com.sj.purchase.modules.cost.domain.ProfitId;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * @author: songkaizong
 * 18-1-9 下午4:53
 */
public interface ProfitRepository extends CrudRepository<Profit, ProfitId> {

    List<Profit> findByIdCreateDateBetween(Date start, Date end);
}
